﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infrastructure.Crosscutting.Comm.Service
{
    public class LogCreateService
    {
        public static Domain.Entity.Log CreateLog()
        {
            Domain.Entity.Log log = new Domain.Entity.Log();
            log.AddTime = System.DateTime.Now;
            log.IpAddress = Infrastructure.Crosscutting.Comm.Service.StringService.GetRealIP();
            log.PageUrl = Infrastructure.Crosscutting.Comm.Service.StringService.GetCurrentUrl();
            log.ReferrerUrl = Infrastructure.Crosscutting.Comm.Service.StringService.GetReferrerUrl();
            log.State = true;
            return log;
        }
    }
}
